#ifndef DATA_H_
#define DATA_H_

#include <iostream>
#include <string>
#include <fstream>
#include <cstdlib>
#include <armadillo>

namespace lps {
  class dataFile {
    // use to read in the data file
  private:
    // file name
    std::string fileName;
    // the matrix to read in
    arma::mat input;
    // variable names
    std::vector<std::string> names;
  public:
    // default constructor should be used
    // the data should be read after object definition
    // read in the data
    bool read(std::string, char = ',', bool = 1);
    // get file name
    std::string& getFileName() {return fileName;};
    arma::mat& getMatrix() {return input;};
    std::vector<std::string>& getHead() { return names;};
  };
}

#endif // DATA_H_
